package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
//第二个参数是实体类中id的类型
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    //根据医院编号查询医院信息
    Hospital findHospByHoscode(String hoscode);

    List<Hospital> findHospByHosnameLike(String hosname);
}